﻿#pragma once

#include "Game.h"
#include "GameBoard.h"

class MainWindow: public CDialog {
    DECLARE_MESSAGE_MAP()

    private: Game* mGame;               // 游戏
    private: GameBoard mGameBoard;      // 游戏区域
    private: CStatusBarCtrl mStatusBar; // 状态栏
    private: CToolBar mToolBar;         // 工具栏

    public: MainWindow(CWnd* parent = NULL);
    public: ~MainWindow();
    private: afx_msg void OnActivate(UINT, CWnd*, BOOL);
    private: afx_msg void OnButtonHelpClicked();
    private: afx_msg void OnButtonMusicClicked();
    private: afx_msg void OnButtonPauseClicked();
    private: afx_msg void OnButtonStartClicked();
    private: LRESULT OnDifficultyUp(WPARAM, LPARAM);
    private: LRESULT OnGameOver(WPARAM, LPARAM);
    private: virtual BOOL OnInitDialog();
    private: LRESULT OnScore(WPARAM, LPARAM);
    private: afx_msg void OnTimer(UINT_PTR);
    private: virtual BOOL PreTranslateMessage(MSG*);
};
